package com.sayimo.maker.activity.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.activity.dao.BaseSeckillTimesDao;
import com.sayimo.maker.activity.vo.BaseSeckillTimes;


/**
 * @Copyright (c) 2016 广东省尚一互联网有限公司
 * @Project: schoolmallapi-2.0
 * @ClassName: BaseSeckillTimesDaoImpl.java
 * @Description: 
 * @Author:	tanxin
 * @Date:2016年10月6日,下午3:39:40
 * @Version 1.0.0
 */
@Repository(value="baseSeckillTimesDao")
public class BaseSeckillTimesDaoImpl extends AbstractMybatisBaseDao<BaseSeckillTimes> implements BaseSeckillTimesDao{
	/**
	 * 根据标示符查询活动信息
	 */
	@Override
	@SuppressWarnings({ "rawtypes"})
	public List<BaseSeckillTimes> selectBaseSeckillTimesIdentifier(String identifier)
			throws DaoException {
		
		return this.mybatisInterfaceBaseDao.query("com.sayimo.maker.activity.dao.BaseSeckillTimesDao.selectBaseSeckillTimesIdentifier", identifier);
	}

	@Override
	public Map selectBaseSeckillTimesByNow(String identifier,Integer seckillTimesId)
			throws DaoException {
		Map map=new HashMap();
		map.put("identifier", identifier);
		map.put("seckillTimesId", seckillTimesId);
		return (Map<String, Object>)this.mybatisInterfaceBaseDao.getObject("com.sayimo.maker.activity.dao.BaseSeckillTimesDao.selectBaseSeckillTimesByNow", map);
	}
}
